package com.lzs.PO;

import java.util.ArrayList;
import java.util.List;

public class Family {

private Integer id;

private String area_county_id;

private String area_town_id;

private String area_village_id;

private String area_team_id;

private String family_id;

private String family_adress;

private List<Member> members = new ArrayList<Member>();

public Integer getId() {
	return id;
}

public void setId(Integer id) {
	this.id = id;
}

public String getArea_county_id() {
	return area_county_id;
}

public void setArea_county_id(String area_county_id) {
	this.area_county_id = area_county_id;
}

public String getArea_town_id() {
	return area_town_id;
}

public void setArea_town_id(String area_town_id) {
	this.area_town_id = area_town_id;
}



public String getFamily_id() {
	return family_id;
}

public void setFamily_id(String family_id) {
	this.family_id = family_id;
}

public String getFamily_adress() {
	return family_adress;
}

public void setFamily_adress(String family_adress) {
	this.family_adress = family_adress;
}

public List<Member> getMembers() {
	return members;
}

public void setMembers(List<Member> members) {
	this.members = members;
}

public String getArea_village_id() {
	return area_village_id;
}

public void setArea_village_id(String area_village_id) {
	this.area_village_id = area_village_id;
}



public String getArea_team_id() {
	return area_team_id;
}

public void setArea_team_id(String area_team_id) {
	this.area_team_id = area_team_id;
}

@Override
public String toString() {
	return "Family [id=" + id + ", area_county_id=" + area_county_id + ", area_town_id=" + area_town_id
			+ ", area_village_id=" + area_village_id + ", family_id=" + family_id + ", family_adress=" + family_adress
			+ ", members=" + members + "]";
}

@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((area_county_id == null) ? 0 : area_county_id.hashCode());
	result = prime * result + ((area_team_id == null) ? 0 : area_team_id.hashCode());
	result = prime * result + ((area_town_id == null) ? 0 : area_town_id.hashCode());
	result = prime * result + ((area_village_id == null) ? 0 : area_village_id.hashCode());
	result = prime * result + ((family_adress == null) ? 0 : family_adress.hashCode());
	result = prime * result + ((family_id == null) ? 0 : family_id.hashCode());
	result = prime * result + ((members == null) ? 0 : members.hashCode());
	return result;
}

@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	Family other = (Family) obj;
	if (area_county_id == null) {
		if (other.area_county_id != null)
			return false;
	} else if (!area_county_id.equals(other.area_county_id))
		return false;
	if (area_team_id == null) {
		if (other.area_team_id != null)
			return false;
	} else if (!area_team_id.equals(other.area_team_id))
		return false;
	if (area_town_id == null) {
		if (other.area_town_id != null)
			return false;
	} else if (!area_town_id.equals(other.area_town_id))
		return false;
	if (area_village_id == null) {
		if (other.area_village_id != null)
			return false;
	} else if (!area_village_id.equals(other.area_village_id))
		return false;
	if (family_adress == null) {
		if (other.family_adress != null)
			return false;
	} else if (!family_adress.equals(other.family_adress))
		return false;
	if (family_id == null) {
		if (other.family_id != null)
			return false;
	} else if (!family_id.equals(other.family_id))
		return false;
	if (members == null) {
		if (other.members != null)
			return false;
	} else if (!members.equals(other.members))
		return false;
	return true;
}





}
